//赛事相关 报名页
import request from '../utils/request.js'

// 获取赛事列表
const getMatchList = (data, showOnload=true) =>{
  return request({
    url: '/api/auth/match/list',
    method: 'POST',
    data,
    showOnload
  })
}

// 获取赛事详情
const getMatchDetail = id => {
  return request({
    url: '/api/auth/match/get/' + id,
    method: 'POST'
  })
}

// 赛事分类列表
const getMatchClassDel = () => {
  return request({
    url: '/api/auth/category/list',
    method: 'POST'
  })
}
// 热搜列表 
const getWordList = () => {
  return request({
    url: '/api/auth/word/list',
    method: 'POST'
  })
}

module.exports = {
  getMatchList,
  getMatchDetail,
  getMatchClassDel,
  getWordList
}